#ifndef OCL_PLATFORM_INCLUDED
#define OCL_PLATFORM_INCLUDED 1

#include "../ocl/device.h"

/** \brief platform summary */
typedef struct 
{
	cl_platform_id id;          /*!< copy of the id           */
	cl_uint        num_devices; /*!< #devices on this platorm */
	cl_device_id  *devices_id;  /*!< the devices  id          */
	ocl_device    *devices;     /*!< the devices              */
	cl_uint        reserved;    /*!< for setup                */
	
	char *         VERSION;     /*!< CL_PLATFORM_VERSION      */
	char *         NAME;        /*!< CL_PLATFORM_NAME         */
	char *         VENDOR;      /*!< CL_PLATFORM_VENDOR       */
	
} ocl_platform;

int  ocl_platform_load( cl_platform_id id, ocl_platform *platform );
void ocl_platform_quit( ocl_platform *platform );


#endif

